<%@ page import="java.util.Arrays" %><%--
  Created by IntelliJ IDEA.
  User: dailyblue
  Date: 2024/1/20
  Time: 17:37
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>request对象3️⃣</title>
</head>
<body>
<%
    // 存放
    // 将abc存放到容器中，起了一个名字A
    request.setAttribute("A", "abc");
    request.setAttribute("B", 98.7);
    request.setAttribute("C", Arrays.asList("aa", "bb", "cc"));
    // 删除容器中的内容
    request.removeAttribute("A");
    // 获取容器中的内容
    Object a = request.getAttribute("A");
    Object b = request.getAttribute("B");
    Object c = request.getAttribute("C");
    out.print("a:"+a);
    out.print("b:"+b);
    out.print("c:"+c);

%>
</body>
</html>